SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[usp_SearchRecruitPositionBytopic]
	(
	@param_topic NVarChar(100),
	@param_type  NVARCHAR(50)
	)
	
AS
	/* SET NOCOUNT ON */
	SELECT  topic,
	        current_stage ,
	        only_sysu,
	        dbo.JOL_Recruitment_Position.visit_times,
	        dbo.JOL_Recruitment_Position.[state],
	        degree ,
	        dbo.JOL_Recruitment_Position.id ,
	        position ,
	        professional ,
	        quantity ,
	        target,
	        employing_unit,
	        JOL_Employer_Name,
	        participants_apply
	 FROM dbo.JOL_Recruitment_Participants_apply,dbo.JOL_Recruitment_Position,dbo.JOL_Recruitment,jol_employer
	 WHERE
     topic like '%'+@param_topic+'%' AND
	 participants_apply=dbo.JOL_Recruitment_Participants_apply.id AND recruitment=dbo.JOL_Recruitment.id AND employing_unit=JOL_Employer_No 
	 ORDER BY dbo.JOL_Recruitment_Position.add_time,dbo.JOL_Recruitment_Position.update_time DESC
	


	RETURN
GO
